home *** CD-ROM | disk | FTP | other *** search
/ Aminet 12 / Aminet 12 (1996)(GTI - Schatztruhe)[!][Jun 1996].iso / Aminet / dev / c / AFramev01.lha / AFramev01 / Include / status.hpp < prev    next >
Encoding:
C/C++ Source or Header  |  1995-11-26  |  1.0 KB  |  41 lines

  1. //////////////////////////////////////////////////////////////////////////////
  2. // status.hpp
  3. //
  4. // Jeffry A Worth
  5. // November 10, 1995
  6. //////////////////////////////////////////////////////////////////////////////
  7.  
  8. #ifndef __STATUS_HPP__
  9. #define __STATUS_HPP__
  10.  
  11. //////////////////////////////////////////////////////////////////////////////
  12. // Includes
  13. #include <string.h>
  14. #include "aframe:include/gadget.hpp"
  15.  
  16. //////////////////////////////////////////////////////////////////////////////
  17. // Status Bar Class
  18.  
  19. class AFStatus : public AFGadget
  20. {
  21. public:
  22.   AFStatus();
  23.   ~AFStatus();
  24.  
  25.   virtual void DestroyObject();
  26.   virtual char *ObjectType() { return "Status"; };
  27.  
  28.   virtual void Create(AFWindow* pwindow, AFRect *rect, ULONG id, UBYTE penDone, UBYTE penToGo);
  29.   virtual void SetStatus(int percent);
  30.   virtual void BuildImages();
  31.  
  32.   struct IntuiText m_IntuiText;
  33.   struct Image m_Done,m_ToGo;
  34.   char *m_text;
  35.   int m_percent;
  36.   UBYTE m_penDone,m_penToGo;
  37. };
  38.  
  39. //////////////////////////////////////////////////////////////////////////////
  40. #endif // __STATUS_HPP__
  41.